package com.amu.dubbo.service;

import com.amu.dubbo.api.DemoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class HelloWordService {

    @Resource
    private DemoService demoService;

    public void sayHello() {
        String sayHello = demoService.sayHello("hello word");
        System.out.println(sayHello);
    }

}
